#ifndef AFX_CBUTTON_H
#define AFX_CBUTTON_H

#include <windows.h>

class CButton {
  private:
    HWND m_hButton;
  public:
    CButton();
    void SetHandle(HWND hButton);
    HWND GetHandle();
    HWND Create(LPCTSTR lpszCaption, DWORD dwStyle, int x, int y, int w, int h,
        UINT nCtrlID, HWND hParentWnd = NULL);
    BOOL Destroy();
    void Click();
    void SetState(BOOL bHighlight);
    UINT GetState();
    void SetCheck(int nCheck);
    UINT GetCheck();
    void SetStyle(DWORD dwStyle, BOOL bRedraw);
    UINT GetStyle();
    void SetDontClick(BOOL bState);
};

#endif // AFX_CBUTTON_H
